<?php echo anchor('admin/tbl_product/add','Add Product');?>
<br>
<?php echo anchor('admin/front','back');?>
<?php echo form_open('admin/tbl_product/delete');?>
<table class="standard-table">

    <tr>
        
        <th>ID</th>
       
        
        <th>Product Name</th>
        
        <th>Product Type</th>
        
        <th>Product Value</th>
        
        <th>Description</th>
        
        <th>Action</th>

    </tr>
    <?php foreach ($tbl_products as $tbl_product) { ?>

        <tr>
            <th><?php echo form_checkbox('id[]',$tbl_product['id']).$tbl_product['id']; ?></th>

             
            <th><?php echo $tbl_product['nama_product']; ?></th>
           
            <th><?php echo $tbl_product['jenis_product']; ?></th>
           
            <th><?php echo $tbl_product['harga_product']; ?></th>
           
            <th><?php echo $tbl_product['description']; ?></th>
           
            <th><a href="<?php echo site_url().'/admin/tbl_product/form_update/'.$tbl_product['id'];?>" >Edit</a>
        </tr>
 
<?php } ?>
</table>
<?php echo $pagination; ?>
<br>
<input type="submit" value="delete" onclick="return confirm('are you sure ?');">

<?php echo form_close();?>